A Randomized Algorithm for Two - ProcessWait - Free Test

نویسنده

  • John Tromp
چکیده

The work of Herlihy and Plotkin on universal shared objects shows how to implement arbitrary wait-free read-modify-write objects from a bounded number of shared read/write bits. deterministically in a concurrent setting using only atomic shared variables. We present a simple randomized algorithm for 2-process wait-free test-and-set, implemented with two 4-valued single writer single reader atomic variables. The worst-case (over all adversarial schedulers) expected number of steps to execute a test-and-set between two processes is at most 11, while a reset takes exactly 1 step. Based on a nite-state analysis, the proofs of correctness and expected length are compressed into one table.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Numerical Simulation of Free Surface Flows and Comparison of Symmetry and Real Boundary Conditions at the Free Surface

For implementation&#10 of the free surface boundary condition, a new subroutine has been introduced to an existing steady 3-D body fitted code. This code was previously written for steady flow simulation in closed ducts. The algorithm used in this subroutine reduces the instability problem according to the free surface wave generation. For code validation, it was applied to two different open c...

متن کامل

Wait - free Test - and - Set ( Extended

This paper presents an economical, randomized, wait-free construction of an n-process test-and-set bit from read write registers. The test-and-set shared object has two atomic operations, test&set, which atomically reads the bit and sets its value to 1, and the reset operation that resets the bit to 0. We identify two new complexity measures by which to evaluate wait-free algorithms: (a) The am...

متن کامل

Numerical Simulation of Free Surface Flows and Comparison of Symmetry and Real Boundary Conditions at the Free Surface

For implementation of the free surface boundary condition, a new subroutine has been introduced to an existing steady 3-D body fitted code. This code was previously written for steady flow simulation in closed ducts. The algorithm used in this subroutine reduces the instability problem according to the free surface wave generation. For code validation, it was applied to two different open cha...

متن کامل

Development of an Upwind Algorithm at Subsonic Regions in the Solution of PNS Equations

In this paper an upwind algorithm based on Roe’s scheme is presented for solution of PNS equations. Non iterative-implicit method using finite volume technique is used. The main advantage of this approach, in comparison with similar upwind methods, is reduction of oscillations around sonic line. This advantage causes the present method to be able to analyze supersonic flows with free stream Mac...

متن کامل

Design Algorithm of a Free Surface Water Tunnel to Test the Surface-Piercing Propellers (SPP); Case Study Water Tunnel of Babol Noshirvani University of Technology

Surface-Piercing Propellers (SPPs) have been widely used in high speed craft due to some desirable features such as high efficiency, omission of resistance of equipment attached to the propeller and proper functioning of cavitation. Unlike the submerged propellers, theoretical methods have no significant application on simulation of SPPsbecause of problems related to modeling of these propeller...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1991